package com.ruoyi.teaching.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 *  * <p>
 *  *
 *  * </p>
 *  *
 *  * @author 王旭
 *  * @since 2024-10-14
 *  
 */
@Data
@TableName("platform_f_forum")
@ApiModel(value = "PlatformFForum对象", description = "")
public class PlatformFForum implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "论坛id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "分区id")
    private Long zoneId;

    @ApiModelProperty(value = "文章或评论")
    private String message;

    @ApiModelProperty(value = "顶级id")
    private Long topId;

    @ApiModelProperty(value = "图片链接")
    private String imageUrl;

    @ApiModelProperty(value = "回复给的人的id")
    private Long replyUserId;

    @ApiModelProperty(value = "上级评论id")
    private Long commentId;

    @ApiModelProperty(value = "顶级评论id")
    private Long topCommentId;

    @ApiModelProperty(value = "回复的是评论还是帖子（0帖子1评论）")
    private Integer replyType;

    @ApiModelProperty(value = "点赞数量")
    private Integer likeNum;

    @ApiModelProperty(value = "创建者id")
    private Integer createId;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新者id")
    private Integer updateId;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;


}
